Image processing apparatus and method

ABSTRACT

Upon embedding additional information in image information, since an image region in which the additional information can be embedded is limited, the information size that can be embedded is often limited, and all pieces of additional information cannot be embedded. Before the additional information is embedded in the image information, distribution information of pixel values is obtained by scanning the image information, and the information size that can be embedded is detected and displayed on the basis of the obtained distribution information of pixel values.

FIELD OF THE INVENTION

[0001] The present invention relates to an image processing apparatus and method and, more particularly, to an image processing apparatus and method for multiplexing another information onto image information.

BACKGROUND OF THE INVENTION

[0002] Various techniques for multiplexing, onto image information, a different kind of information have been proposed as copyright protection, forgery prevention of banknotes, protection of secret information, and transmission methods of text data and sound data including audio data.

[0003] In recent years, a technique called digital watermarking, which multiplexes, onto image information such as a photo, painting, or the like, additional information including the copyright holder name, permission/denial of use, and the like so as to be hard to visually detect, and distributes such information via a network such as the Internet or the like, has prevailed.

[0004] For example, “Digital Watermarking and its Evaluation items”, IIEEJ Journal, Vol. 27, No. 5, p. 483, 1998 has announced various digital watermarking techniques. Information multiplexing methods are roughly categorized into a method of embedding information in the frequency domain and a method of embedding information in the real space domain. When information is embedded in the frequency space, image information is converted into that in the frequency domain using given means such as Fourier transformation or the like, and information is then multiplexed using frequency components, phase components, or the like. On the other hand, when information is embedded in the real space domain, information is multiplexed using the value of the least significant bit and quantization errors.

[0005] Current information multiplexing mainly aims at copyright protection of digital images and the like, and data to be multiplexed are often limited to the copyright holder name, place, date of creation, and the like.

[0006] On the other hand, as methods of mixing an image containing a text document or the like and another kind of variable-length information such as audio data or the like in a single medium, a method of describing information in a blank, a method of describing information using ink which is quite different from inks that form an image, and a method of mixing a code having a shape independently of the image information as information although ink that forms the image is used are known.

[0007] As another application field of such technique, as image forming apparatuses such as copying machines, printers, and the like attain higher image qualities, a technique for embedding additional information into an image to specify the output device model and model number from the image output onto a recording sheet for the purpose of preventing securities such as banknotes, revenue stamps, and the like from being forged is known.

[0008] For example, a technique for multiplexing information by embedding additional information in the high-frequency range of color difference and saturation components with low visual sensitivity has been known.

[0009] However, the conventional multiplexing technique suffers the following problems.

[0010] When information is multiplexed using the frequency domain, since frequency components that each image requires differ depending on images, the data size of additional information that can be multiplexed while suppressing deterioration of image quality is determined for each image of interest. Hence, when the additional information size is large, the frequency domain required for multiplexing increases, and it is often impossible to multiplex all pieces of information in some images.

[0011] When information is multiplexed using the real space domain, additional information embedded into a region which is easy to visually detect causes deterioration of image quality. On the other hand, when additional information is embedded into a region which is hard to decode due to influences of surrounding image information, the embedded information cannot be used. That is, a region in which additional information can be embedded is limited. As a result, the information size that can be multiplexed is limited, and all pieces of information cannot often be multiplexed.

[0012] The method of describing additional information in a blank is not desirable since a region other than an image is required. The method of using special ink is not desirable since ink other than those used in a normal print process is required and, hence, cost may rise.

[0013]FIG. 21 depicts an example of the additional information embedding method. As shown in FIG. 21, image information A and additional information B are multiplexed via an adder 1201 to generate multiplexed information C. The adder 1201 may add information in the real space of the image information A or may transform the image information A into that in the frequency domain using, e.g., Fourier transformation, or the like and may then synthesize the additional information B in the high-frequency range of the transformed information.

[0014] If it is possible to distribute the multiplexed information C generated in this way without any image processes such as various filtering processes and the like or any encoding processes such as lossy compression or the like, it is possible to decode the additional information B from the multiplexed information C. Also, image information, which is distributed on, e.g., the Internet, can also be decoded via digital filters for improving image quality such as edge emphasis, smoothing, and the like, as long as it has some noise resilience.

[0015] Assume that an image forming apparatus has only expression performance as low as two to several gray levels per color. In recent years, ink-jet printers can express several gray levels per color using inks with lower dye densities or by variably controlling the dot sizes to be output. However, such printers cannot express a photo-quality image unless a pseudo halftone process is used.

[0016]FIG. 22 depicts an example that executes a pseudo halftone process upon multiplexing additional information. That is, in addition to the arrangement shown in FIG. 21, the multiplexed information is converted into quantized information D by a pseudo halftone process 1301, and the converted information is printed out onto a recording sheet by a printer output 1302, thus obtaining printed information E that has deteriorated considerably. Hence, decoding additional information from information on a recording sheet for the purpose of preventing forgery amounts to decoding additional information from the printed information E after the series of processes shown in FIG. 22. However, the image information changes to a large extent by the two processes, i.e., the pseudo halftone process 1301 and printer output 1302. Therefore, it is very difficult to multiplex additional information so as not to be visually detectable, and to successfully decode the multiplexed additional information B from the printed information E.

[0017] The aforementioned multiplexing technique embeds information in the high-frequency region of an image. When the subsequent pseudo halftoning uses error diffusion, the frequency range of the additional information is buried under that of a texture produced by error diffusion due to the high-pass filter characteristics unique to error diffusion, and it becomes harder to decode the additional information. Also, in order to accurately decode the additional information from the printed information, a scanner device with very high precision is required.

[0018] That is, when the pseudo halftone process must be done, the multiplexing method shown in FIG. 13 is not suitable. In other words, an additional information multiplexing method that fully utilizes the characteristics of the pseudo halftone process is needed.

[0019] There are techniques combining multiplexing of additional information and redundancy of the pseudo halftone process.

[0020] In the techniques, upon binarization using ordered dithering, additional data is mixed into an image signal by selecting one of dither matrices indicating an identical gray level. However, in ordered dithering, it is difficult to output a photo-quality image unless a printer having a high resolution and very high mechanical precision is used. Small mechanical precision errors are produced as low-frequency noise such as horizontal stripes or the like, and are easily visually detectable on paper. When the dither matrices are periodically changed, a specific frequency range generated by a regular dither pattern is disturbed, thus adversely influencing image quality. Also, the decoder must decode additional information by estimating the dither matrix used in binarization while the pixel values of image information as an original signal are unknown and, hence, it is hard to attain accurate decoding.

[0021] The second technique has proposed a method of multiplexing additional information using a color dither pattern method. In the second technique, deterioration of image quality upon switching the dither matrices cannot be avoided as in the first technique. Compared to the first technique, a larger number of pieces of additional information can be multiplexed, but the color tincture changes since the sequence of color components changes, and image quality deteriorates considerably in a portion with little grayscale change. Also, decoding becomes more harder to attain.

[0022] In any case, these methods that change the dither matrices suffer the problem that decoding is hard to attain despite the fact that image quality deteriorates considerably.

[0023] Method of embedding large-size information such as audio information in an image is known. In this method, audio information is converted into a dot code so-called a two-dimensional barcode, and the barcode is printed on a blank of an image or inside the image. However, this method neither multiplexes a dot code as additional information on image information nor appends additional information (dot code) so as to be hard to visually detect. This reference describes only one example for embedding a code using transparent paint as a devise for making a dot code hard to visually detect. However, since special ink is required, the cost inevitably increases, and the quality of an image printed out on a recording sheet deteriorates.

SUMMARY OF THE INVENTION

[0024] The present invention has been made to solve the aforementioned problems, and has as its object to provide an image processing apparatus and method which can detect the size of information that can be multiplexed.

[0025] In order to achieve the above object, a preferred embodiment of the present invention discloses an image processing apparatus, which has embedding means for embedding information in image information, comprising: obtaining means for obtaining distribution information of pixel values by scanning the image information before the information is embedded by the embedding means; and detection means for detecting an information size, that can be embedded by the embedding means, on the basis of the obtained distribution information of pixel values.

[0026] It is another object of the present invention to provide an image processing apparatus and method, which can determine whether multiplexing is possible.

[0027] In order to achieve the above object, a preferred embodiment of the present invention discloses comparison means for comparing the information size detected by said detection means with an information size of information to be embedded; and determination means for determining on the basis of a comparison result whether multiplexing is possible.

[0028] It is still another object of the present invention to provide an image processing apparatus and method, which can control information multiplexing on the basis of the determination result of whether multiplexing is possible.

[0029] In order to achieve the above object, a preferred embodiment of the present invention discloses control means for controlling the embedding means on the basis of the determination result of said determination means.

[0030] It is still another object of the present invention to provide an image processing apparatus and method, which can control the size of information to be multiplexed to that which can be multiplexed.

[0031] In order to achieve the above object, a preferred embodiment of the present invention discloses an image processing apparatus, which has embedding means for embedding coded information in image information, comprising: obtaining means for obtaining distribution information of pixel values by scanning the image information before the information is embedded by the embedding means; detection means for detecting an information size, that can be embedded by the embedding means, on the basis of the obtained distribution information of pixel values; and control means for controlling an encoding condition of the coded information on the basis of the detected information size that can be embedded.

[0032] It is still another object of the present invention to provide an image processing apparatus and method, which can multiplex large additional information while suppressing deterioration of image quality of image information.

[0033] A preferred embodiment of the present invention discloses an image processing apparatus for embedding additional information in image information, comprising: quantization means for quantizing the image information by a pseudo halftone process; embedding means for embedding a quantization value pattern indicating the additional information in the quantized image information by controlling a quantization condition of said quantization means; and control means for controlling embedding of the quantization value pattern in accordance with an information size of the additional information.

[0034] A preferred embodiment of the present invention discloses an image processing method for embedding additional information in image information, comprising the steps of: embedding, by controlling a quantization condition of a quantization process for quantizing the image information by a pseudo halftone process, a quantization value pattern indicating the additional information in the quantized image information; and controlling embedding of the quantization value pattern in accordance with an information size of the additional information.

[0035] Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof.

BRIEF DESCRIPTION OF THE DRAWINGS

[0036]FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to the first embodiment of the present invention;

[0037]FIG. 2 is a view for explaining an information multiplexing method onto image information;

[0038]FIG. 3 is a flow chart showing the operation sequence of the first embodiment;

[0039]FIG. 4 is a block diagram showing the arrangement of an image processing apparatus according to the second embodiment of the present invention;

[0040]FIG. 5 is a flow chart showing the operation sequence of the second embodiment;

[0041]FIG. 6 is a block diagram showing the arrangement of an image processing apparatus according to the third embodiment of the present invention;

[0042]FIG. 7 is a flow chart showing the operation sequence of the third embodiment;

[0043]FIG. 8 is a block diagram showing the arrangement of an image processing apparatus according to the fourth embodiment of the present invention;

[0044]FIG. 9 is a flow chart showing the operation sequence of the fourth embodiment;

[0045]FIG. 10 is a schematic block diagram showing the arrangement of an image processing system according to the fifth embodiment of the present invention;

[0046]FIG. 11 is a detailed block diagram showing the arrangement of a multiplexing/pseudo halftone processor in the fifth embodiment;

[0047]FIG. 12 is a flow chart showing the operation sequence of a multiplexing controller in the fifth embodiment;

[0048]FIG. 13 is a detailed block diagram of a quantizer in the fifth embodiment;

[0049]FIG. 14 is a flow chart showing the operation sequence of the multiplexer in the fifth embodiment;

[0050]FIG. 15 shows an example of a window of binarized information in the fifth embodiment;

[0051]FIGS. 16A and 16B show examples of target patterns in the fifth embodiment;

[0052]FIG. 17 shows an example of a diffusion matrix in error diffusion;

[0053]FIG. 18 shows an example of an image formed by the fifth embodiment;

[0054]FIG. 19 shows the block segmentation processes in the formed image;

[0055]FIG. 20 is a flow chart showing the operation sequence of a multiplexing controller in the sixth embodiment of the present invention;

[0056]FIG. 21 is a block diagram showing an example of multiplexing; and

[0057]FIG. 22 is a block diagram showing another example of multiplexing.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0058] An image processing apparatus according to an embodiment of the present invention will be described in detail hereinafter with reference to the accompanying drawings.

[0059] In each of the following embodiments, the arrangement and method of multiplexing, onto image information, a different kind of information, and the arrangement and method of detecting the size of information that can be multiplexed will be explained in detail. However, image information on which information is to be multiplexed, and multiplexing conditions are not limited to those in the following description, and the arrangements and methods to be described below are effective for every conditions to which the present invention can be applied. Furthermore, a different kind of information to be appended (to be simply referred to as “additional information” hereinafter) is not limited to character information such as text, symbols, and the like, but includes information such as sound or image information containing audio information. Also, various encoding methods may be used upon encoding additional information.

[0060] [First Embodiment]

[0061] [Arrangement]

[0062]FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to the first embodiment of the present invention.

[0063] Referring to FIG. 1, reference numeral 10 denotes a controller which includes a CPU 10 a, ROM 10 b, RAM 10 c, and the like, and controls the operations and processes of the individual building components to be described below. Especially, the CPU 10 a controls multiplexing and associated processes in accordance with programs pre-stored in the ROM 10 b using the RAM 10 c as a work memory.

[0064] Reference numeral 100 denotes an input terminal of image information on which additional information is multiplexed; and 101, an input terminal of additional information.

[0065] Reference numeral 102 denotes a detector for detecting the distribution of pixel values by scanning the input image information; 103, a measurement unit for measuring the size of information that can be multiplexed using a given multiplexing means on the basis of the detected distribution of pixel values; and 104, a display such as a CRT, LCD, or the like for displaying the measured size of information that can be multiplexed.

[0066] As a multiplexing means, an information appending means which defines a feature by a specific combination of quantization values of a plurality of pixels by changing the quantization value of the pixel of interest in pseudo halftoning may be used. In the first embodiment, as a simpler example, 1-bit encoded information is appended to each of lattice points at 20-dot intervals on high-resolution image information binarized by error diffusion, as shown in FIG. 2. The ON/OFF state of information is expressed by the presence/absence of an ON signal at each lattice point.

[0067] Since dots with 0% density are scarcely distributed in a high-density portion of an image binarized by error diffusion, two or more dots with 0% density rarely appear at neighboring positions. Conversely, since dots with 100% density are scarcely distributed in a low-density portion, two or more dots with 100% density rarely appear at neighboring positions. However, in a middle-density portion, since dots with 100% and 0% densities are crowded, dots with identical density are highly likely to appear at neighboring positions. For this reason, an ON signal to be appended is expressed by a set of four dots with 100% density if the average density of pixel values around an information appending region is low, or by a set of four dots with 0% density if it is high. In this case, information is not appended to a middle-density region where a set of four dots become featureless compared to surrounding pixels, and it is hard to identify information.

[0068] Referring back to FIG. 1, reference numeral 105 denotes an encoder for encoding the input additional information. For example, the encoder 105 encodes information by, e.g., Huffman coding. Reference numeral 106 denotes an information multiplexer for multiplexing information in accordance with the aforementioned information multiplexing means. Reference numeral 107 denotes a terminal for outputting image information on which additional information is multiplexed.

[0069] [Processing]

[0070]FIG. 3 is a flow chart showing the operation sequence of the first embodiment. Assume that the size of image information is N×N pixels (vertical×horizontal).

[0071] In step S300, variables i and j, and the multiplexable information size count value are initialized. Note that variable i counts the vertical (row) addresses (pixel positions), and variable j counts the horizontal (column) addresses (pixel positions). Pixel positions indicated by variables i and j will be respectively referred to as row and column addresses hereinafter.

[0072] It is checked in step S301 if row address i indicates a row including a lattice point, and it is checked in step S302 if column address j indicates a column including a lattice point. If YES in steps S301 and S302, the average density of pixels around the lattice point is measured in step S303. It is checked in step S304 if the measured average density is a middle density at which information cannot be multiplexed. If NO in step S304, the multiplexable information size count value is incremented in step S305.

[0073] If it is determined in step S302 that the column of interest does not include any lattice point, if it is determined in step S304 that the measured average density is a middle density, or after the process in step S305, the flow advances to step S306 to increment column address j to horizontally shift the pixel position to be scanned. In step S307, column address j and horizontal size M of an image are compared. If j≦M in step S307, the flow returns to step S302.

[0074] If j>M, or if it is determined in step S301 that the row of interest does not include any lattice point, row address i is incremented, and column address j is reset to zero in step S308 so as to vertically shift the pixel position to be scanned. In step S309, row address i and vertical size N of an image are compared. If i≦N, the flow returns to step S301, thus repeating the processes in steps S301 to S309.

[0075] If it is determined in step S309 that the processes for N rows are complete, the count value indicating the multiplexable information size is displayed in step S310, thus ending this processing.

[0076] According to the first embodiment, since the information size that can be multiplexed onto an image can be measured in advance before multiplexing, a target information size can be obtained upon creation, selection, modification, and the like of additional information, and creation, selection, modification, and the like of additional information can be efficiently done.

[0077] In the above description, information is appended to each lattice point in the real space domain. However, the first embodiment is not limited to such specific example, but can be applied to every other methods for appending information.

[0078] In the above example, multiplexing is implemented by appending an ON signal to a high- or low-density portion. However, the first embodiment is not limited to such specific example, but can be applied to every other signal appending methods.

[0079] [Second Embodiment]

[0080] An image processing apparatus according to the second embodiment of the present invention will be described below. Note that the same reference numerals in the second embodiment denote the same parts as those in the first embodiment, and a detailed description thereof will be omitted.

[0081]FIG. 4 is a block diagram showing the arrangement according to the second embodiment of the present invention.

[0082] The second embodiment comprises a comparator 400 which compares the multiplexable information size measured by the measurement unit 103, and the size of additional information encoded by the encoder 105 to determine whether multiplexing is possible. Based on the comparison result of the comparator 400, whether multiplexing is possible is displayed on the display 104. Note that it is effective to display a reason when multiplexing is impossible, in addition to display of whether multiplexing is possible.

[0083]FIG. 5 is a flow chart showing the operation sequence of the second embodiment, and shows processes in step S310 and subsequent steps, since steps S300 to S310 are the same as those in the first embodiment shown in FIG. 3.

[0084] Additional information is encoded by the encoder 105 in step S311, and the comparator 400 compares the multiplexable information size and the size of the encoded additional information in step S312 to determine whether multiplexing is possible. In step S313, display that pertains-information as to whether multiplexing is possible is made on the display 104.

[0085] Note that FIG. 5 shows an example in which additional information is encoded after the multiplexable information size is detected and displayed. However, since additional information can be encoded independently, encoding may be done before, after, or during the detection & display processes of the multiplexable information size. Also, the multiplexable information size may not be displayed, or it is effective to display the multiplexable information size depending on the determination result of whether multiplexing is possible.

[0086] According to the second embodiment, since the information size that can be multiplexed onto an image can be measured in advance before multiplexing, a target information size can be obtained upon creation, selection, modification, and the like of additional information, and creation, selection, modification, and the like of additional information can be efficiently done. Furthermore, when image information on which information is to be multiplexed, and additional information and its encoding conditions are determined, whether multiplexing is possible can be determined before multiplexing. As a result, when there are a plurality of combinations of image information on each of which information is to be multiplexed, and additional information and its encoding conditions, multiplexable combinations of them can be efficiently selected.

[0087] [Third Embodiment]

[0088] An image processing apparatus according to the third embodiment of the present invention will be described below. Note that the same reference numerals in this embodiment denote the same parts as those in the first and second embodiments, and a detailed description thereof will be omitted.

[0089]FIG. 6 is a block diagram showing the arrangement according to the third embodiment of the present invention.

[0090] The third embodiment controls multiplexing executed by the information multiplexer 106 on the basis of the comparison result of the multiplexable information size measured by the measurement unit 103 and the size of additional information encoded by the encoder 105 by the comparator 400, i.e., the determination result of whether multiplexing is possible.

[0091]FIG. 7 is a flow chart showing the operation sequence of the third embodiment, and shows the processes in step S313 and subsequent steps, since steps S300 to S313 are the same as those in the second embodiment shown in FIG. 5.

[0092] After whether multiplexing is possible is displayed in step S313, the flow branches depending on the determination result of whether multiplexing is possible in step S314. That is, if multiplexing is impossible, the processing ends; otherwise, a multiplexing process in step S315 and subsequent steps is done.

[0093] In step S315, variables i and j are initialized. Note that variable i is a row address counter, and variable j is a column address counter.

[0094] It is checked in step S316 if row address i indicates a row including a lattice point, and it is checked in step S317 if column address j indicates a column including a lattice point. If YES in steps S316 and S317, the average density of pixels around the lattice point is measured in step S318. It is checked in step S319 if the measured average density is a middle density at which information cannot be multiplexed.

[0095] If NO in step S319, the flow branches depending on the average density in step S320. That is, if the average density is high, a set of four dots with 0% density for expressing additional information are formed in step S321; if the average density is low, a set of four dots with 100% density for expressing additional information are formed in step S322.

[0096] If it is determined in step S317 that the column of interest does not include any lattice point, if it is determined in step S319 that the measured average density is a middle density, or after the process in step S321 or S322, the flow advances to step S323 to increment column address j to horizontally shift the pixel position to be scanned. In step S324, column address j and horizontal size M of an image are compared. If j≦M in step S324, the flow returns to step S317.

[0097] If j>M, or if it is determined in step S316 that the row of interest does not include any lattice point, row address i is incremented, and column address j is reset to zero in step S325 so as to vertically shift the pixel position to be scanned. The processes in steps S316 to S326 are repeated until it is determined in step S326 that row address i and vertical size N of the image satisfy i>N, thus ending the processing.

[0098] Note that FIG. 7 shows an example in which additional information is encoded after the multiplexable information size is detected and displayed. However, since additional information can be encoded independently, encoding may be done before, after, or during the detection & display processes of the multiplexable information size. Also, the multiplexable information size need not be displayed, or it is effective to display the multiplexable information size depending on the determination result of whether multiplexing is possible.

[0099] According to the third embodiment, in addition to the effects obtained by the first and second embodiments, since determination of whether multiplexing is possible and the multiplexing process itself are done in series, image information, additional information, or encoding conditions as elements of multiplexing must be changed only when multiplexing is impossible. Therefore, when multiplexing is possible, the multiplexing process of information is subsequently done, thus reducing the loads on the operator and attaining efficient information multiplexing processes. Even when multiplexing is impossible, the size of additional information which can be multiplexed onto the currently selected image information is displayed together with that determination result, and can be used as a reference upon changing the additional information or its encoding conditions.

[0100] [Fourth Embodiment]

[0101] An image processing apparatus according to the fourth embodiment of the present invention will be described below. Note that the same reference numerals in this embodiment denote the same parts as those in the first, second, and third embodiments, and a detailed description thereof will be omitted.

[0102]FIG. 8 is a block diagram showing the arrangement according to the fourth embodiment of the present invention.

[0103] The fourth embodiment implements information multiplexing with very high efficiency by reflecting the determination result of whether multiplexing is possible in encoding conditions of additional information.

[0104] An information size measurement unit 801 measures the size of the input additional information. The comparator 400 outputs the comparison result between the additional information size obtained from the information size measurement unit 801, and the size of image information obtained by the measurement unit 103. An encoding condition controller 803 determines the encoding conditions of additional information on the basis of the comparison result of the information sizes obtained from the comparator 400, and sets the determined conditions in the encoder 105.

[0105] For example, the encoding condition controller 803 can change the information size by changing the sampling rate of sound information. More specifically, using the ratio between the multiplexable information size and the size of additional information as a factor upon changing the sampling rate, it can be effectively reflected in the encoding conditions. When the sampling rate of, e.g., sound information is to be changed, if the sampling rate is lowered too much, information that the additional information originally has may be lost. Hence, it is effective to make the comparator 400 determine whether multiplexing is possible by setting a multiplexable range in advance, and to control information multiplexing on the basis of the determination result.

[0106] After the encoding conditions are determined by the encoding condition controller 803, the encoder 105 encodes additional information under the set encoding condition, and sends the encoded additional information to the information multiplexer 106, thus multiplexing information.

[0107]FIG. 9 is a flow chart showing the operation sequence of this embodiment. FIG. 9 shows only processes around steps S331 and S332, since processes other than those in steps S331 and S332 are the same as those in the third embodiment shown in FIG. 7 and are not shown.

[0108] If it is determined in step S314 that multiplexing is possible, the encoding condition controller 803 determines the encoding conditions required for encoding the additional information to be multiplexed in step S331. That is, the sampling rate required for encoding sound information is determined. Note that the sampling rate is determined by multiplying the sampling rate by the ratio between the size of information that can be multiplexed on image information, and that of the encoded additional information as a factor, as described above. After the encoding conditions are determined, the encoder 105 encodes the additional information in step S332.

[0109] Note that the additional information is not limited to sound information, but may be any other information as long as it can undergo lossy compression like image information, and the information size can be changed by some conditions.

[0110] According to the fourth embodiment, in addition to the effects obtained by the first to third embodiments, since the application range of multiplexing can be widened by controlling the encoding conditions of the additional information, information can be multiplexed more easily. Furthermore, since information is multiplexed by decreasing the size of the additional information, information which has a large information size that cannot be multiplexed directly can be multiplexed by a single process.

[0111] [Fifth Embodiment]

[0112] The fifth embodiment of the present invention will be described below with reference to the accompanying drawings. Note that an image processing apparatus in each of the embodiments to be described hereinafter is efficiently implemented as printer driver software in a computer that creates image information to be output to a printer engine, but may be effectively built in a copying machine, facsimile apparatus, printer, or the like as hardware or software.

[0113] [Outline]

[0114] The embodiment to be described below aims at multiplexing large-size additional information onto image information while suppressing deterioration of image quality. As a method of multiplexing additional information while suppressing deterioration of image quality, the applicants found out a method of multiplexing codes of additional information by artificially generating a pattern of quantization values, which are never generated in an ordinary pseudo halftone process, using a texture produced by error diffusion. According to this method, since only the texture pattern changes microscopically, deterioration of image quality is not visually detectable. By generating such pattern upon changing the quantization threshold value of error diffusion, the density value expressed by dot area modulation can be preserved, thus multiplexing a different kind of information very easily.

[0115] However, the multiplexing method using a texture produced by error diffusion is premised on that the additional information to be multiplexed is mainly index information such as a model name, model number, and the like. In other words, the size of information to be embedded in image information or the like is much smaller than that image information. For this reason, assuming that audio information with a large information size is to be multiplexed, it becomes often hard to multiplex all pieces of additional information in image information.

[0116] In the following embodiment, in order to allow multiplexing of large-size additional information, a multiplexing block size that serves as the allowable limit of deterioration of image quality is computed based on a value that was computed experimentally. By multiplexing 1 bit within that block size, multiplexing corresponding to the additional information size and image size can be implemented.

[0117] A case will be exemplified below wherein audio information is multiplexed onto image information.

[0118] [Arrangement]

[0119]FIG. 10 is a schematic block diagram showing the arrangement of an image processing system of the fifth embodiment. Referring to FIG. 10, a block 1000 bounded by the broken line indicates a transmission system, and a block 1001 indicates a reception system.

[0120] In the transmission system 1000, reference numeral 1002 denotes a multiplexing/pseudo halftone processor which is a means for multiplexing the input image information and audio information to be embedded in that image. The multiplexing/pseudo halftone processor 1002 simultaneously executes multiplexing and pseudo halftoning, i.e., two processes having different purposes. Note that the multiplexing/pseudo halftone process will be explained in detail later. The information that has undergone the multiplexing/pseudo halftone process is printed out onto a medium such as a recording sheet by an output apparatus such as a printer in an image output unit 1003. Information output onto the recording sheet will be referred to as printed information hereinafter.

[0121] The printed information is sent to a certain partner at, e.g., a remote place. The reception system 1001 that receives the printed information receives two kinds of information, i.e., image information and audio information as an image on a recording sheet.

[0122] In the reception system 1001, reference numeral 1004 denotes an image input unit which inputs printed information by, i.e., an image scanner. The image scanner preferably has a resolution twice or higher the printer resolution used in the image output unit 1003 in accordance with the sampling theorem. Reference numeral 1005 denotes a multiplexed information demultiplexer, which demultiplexes information multiplexed on the input image information to obtain independent audio information. The demultiplexed audio information can be played back by a playback apparatus (not shown) in the reception system 1001.

[0123] [Multiplexing/Pseudo Halftone Processor]

[0124] The multiplexing/pseudo halftone processor 1002 as a characteristic feature of this embodiment will be described in detail below.

[0125]FIG. 11 is a detailed block diagram showing the arrangement of the multiplexing/pseudo halftone processor 1002. Referring to FIG. 11, reference numeral 1010 denotes a controller which includes a CPU 1010 a, ROM 1010 b, RAM 1010 c, and the like, and controls the operations and processes of the individual building components to be described below. Especially, the CPU 1010 a controls multiplexing and associated processes in accordance with programs pre-stored in the ROM 1010 b using the RAM 1010 c as a work memory.

[0126] Reference numeral 201 denotes a multiplexing controller which receives additional information to be multiplexed onto image information, and controls multiplexing. Reference numeral 202 denotes a noise removing unit which removes a noise component having a peculiar value in image information. This noise removing method can be implemented by known filtering. Also, it is effective to use an LPF (low-pass filter) that removes not only a noise component but also a high-frequency component of an image. Reference numeral 203 denotes a quantizer which quantizes the image information multiplexed with the additional information into a number of gray levels that the printer engine in the image output unit 1003 can output. Note that quantization is implemented by pseudo halftoning. Reference numeral 204 denotes a multiplexer for multiplexing the codes of additional information by changing the quantization conditions with reference to the pattern of quantization values that have already been quantized.

[0127] [Multiplexing Controller]

[0128] The multiplexing controller 201 will be described in detail below. FIG. 12 is a flow chart showing the sequence of a control process in the multiplexing controller 201.

[0129] In step S1301, the number HEIGHT of vertical pixels and the number WIDTH of horizontal pixels of image information, and an information size (the number of bits) N of additional information such as audio information or the like are input. In step S1302, an information size α required for multiplexing in addition to the additional information is added to N to obtain N2. Note that α may include a marker code indicating a place of multiplexing, header information such as encoding conditions and the like, information with redundancy such as an error correction code, and the like, i.e., information required to extract at least embedded information. In step S1303, variables w and h indicating the size of a block to be multiplexed (to be described later) are computed by:

w=WIDTH/{square root}{square root over (N2)}  (1)

h=HEIGHT/{square root}{square root over (N2)}  (2)

[0130] It is then checked in step S1304 if both w and h computed in step S1303 are larger than a threshold value th which is set in advance. If one of w and h is equal to or smaller than th, since the information size of the additional information is too much larger than the image size, an error message is displayed in step S1305, thus ending the processing. Note that th may be determined by experimentally computing a limit beyond which image quality deteriorates considerably upon multiplexing additional information, or a value that makes multiplexing impossible in practice may be set. The value th is largely influenced by the engine characteristics of a printer or the like.

[0131] On the other hand, if it is determined in step S1304 that both w and h are larger than th, the values w and h are output to the multiplexer 203 in step S1306, thus ending the processing.

[0132] [Quantizer]

[0133] The quantizer 203 will be described in detail below. FIG. 13 is a detailed block diagram showing the arrangement of the quantizer 203. The quantizer 203 executes pseudo halftoning using error diffusion. Note that details of a general error diffusion process are described in, e.g., R. Floyd & L. Steinberg, “An Adaptive Algorithm for Spatial Grayscale”, SID Symposium Digest of Paper, p. 36-37 (1975), and a detailed description thereof will be omitted.

[0134] Error diffusion in which the quantization value is a binary value will be exemplified below.

[0135] Referring to FIG. 13, reference numeral 400 denotes an adder which adds the value of the pixel of interest of the input image information, and a quantization error distributed from surrounding pixels that have already been binarized. The sum is compared with a threshold value TH sent from the multiplexer 204 by a comparator 401, and when the sum is larger than the threshold value, a quantization value “1” is output; otherwise, “0” is output, thus quantizing the image information. When the quantization value is “1”, a dot (ink, toner, or the like) is printed on a recording sheet.

[0136] Reference numeral 402 denotes a subtractor which computes any error between the quantization result output from the comparator 401 and the sum output from the adder 400, and outputs the error to an error distribution operating section 403. The error distribution operating section 403 distributes the error to surrounding pixels which are to undergo quantization next. As the error distribution ratio, an error distribution table 404 which is experimentally set on the basis of relative distances to the pixel of interest is prepared in advance, and the error is distributed to the pixels on the basis of the distribution ratios in the distribution table 404. Note that the pixel of interest is indicated by * in the distribution table 404, and an error is distributed to four surrounding pixels that neighbor the pixel of interest.

[0137] [Multiplexer]

[0138] As described above, the quantizer 203 executes a general error diffusion process. In this case, the quantization result can be controlled by changing the quantization threshold value TH input to the comparator 401. For example, when the quantization result is to be forcibly set at “1”, the quantization threshold value TH can be set to be small enough to obtain the output “1” from the comparator 401.

[0139] The quantization threshold value TH is set by the multiplexer 204. The operation in the multiplexer 204 will be described in detail below. The multiplexer 204 multiplexes additional information by controlling the quantization threshold value TH to be output to the quantizer 203 with reference to the pattern of quantization values that have already been quantized.

[0140]FIG. 14 is a flow chart showing the control sequence of the quantization threshold value TH in the multiplexer 204. A case will be exemplified below wherein 1-bit additional information is embedded in a block consisting of w×h pixels in image information. Note that the quantization value is a binary value.

[0141] In step S501, the distribution of pixels in a block consisting of w×h pixels is detected. That is, the pixel value distribution in the block is detected by scanning all pixels in that block or scanning a plurality of sub-sampled pixels.

[0142] In step S502, a density range in which additional information is to be multiplexed is determined on the basis of the detected distribution of pixel values. In this case, the priority order of multiplexing additional information is preferably assigned in units of density ranges which are classified in advance. For example, when 8-bit (256 gray levels) tone expression is made, density ranges are classified in advance into 16 groups of 16 steps, and the priority order is determined so that the individual groups have priority in the order of low, high, and middle densities. In this example, the correspondence between priority levels 1 to 16 and the individual groups are set in, e.g., an LUT (look-up table). The order can be experimentally set in consideration of, e.g., the engine characteristics of a printer. Since it is harder to demultiplex additional information in a high-density range due to smear of ink on a recording sheet, it is preferable to preferentially multiplex additional information on a low-density range.

[0143] In this manner, in step S502 the density range included in the highest priority group is determined as that in which information is to be multiplexed by scanning pixels in the block.

[0144] It is then checked in step S503 if the additional information to be multiplexed is “1” or “0”. Note that the additional information to be multiplexed in the block is 1 bit, as described above. If the additional information to be multiplexed is “0”, the flow advances to step S504; if it is “1”, the flow advances to step S505.

[0145] In both steps S504 and S505, a matching pattern of a window that is used to refer to a plurality of pixels around the pixel of interest, which have already been binarized, is set. That is, a pixel value pattern (to be also referred to as a target pattern hereinafter) corresponding to the density range group, which is determined in step S502 and in which additional information is multiplexed is selected from a plurality of pixel value patterns registered in advance in units of density range groups. Since two different pixel value patterns (respectively corresponding to codes “1” and “0”) are present for each density range group, the number of groups×two different pixel patterns are held in advance in, e.g., a table. Therefore, pixel pattern A corresponding to code “0”, which is registered in advance in correspondence with the density range group in which additional information is multiplexed, is set as a target pattern in step S504; pixel value pattern B corresponding to code “1” is set as a target pattern in step S505.

[0146]FIG. 15 shows an example of the window which is to be referred to in step S504 or S505. In FIG. 15, * indicates the pixel of interest, and a, b, c, d, e, f, g, and h indicate pixels which have already been binarized. Since the number of pixels to be referred to within this window is eight, there are 256 different combinations of patterns that the pixels to be referred to can assume.

[0147]FIGS. 16A and 16B respectively show examples of patterns A and B set as the target pattern. In FIGS. 16A and 16B, pixel values “0” and “1” are quantization values, and X marks indicate pixels that can be any values. Note that the pattern examples shown in FIGS. 16A and 16b are those for the low-density range group. FIG. 16A shows an example of pattern A, i.e., the combination of the values of surrounding pixels (corresponding to the window shown in FIG. 15) around the pixel of interest, which has a pixel value sequence shown in FIG. 16A, is set as the target pattern when the additional information is “0”. Likewise, FIG. 16B shows an example of pattern B, i.e., the target pattern set when the additional information is “1”.

[0148] As can be seen from FIGS. 16A and 16B, pattern A is characterized by having a quantization value=1 at a pixel immediately preceding the pixel of interest in the horizontal direction, and pattern B is characterized by having a quantization value=1 at a pixel immediately preceding the pixel of interest in the vertical direction. Hence, in the fifth embodiment, if the pixel value sequence of pattern A is detected in a given block, a horizontally successive quantization pattern is formed; if that of pattern B is detected, a vertically successive quantization pattern is formed, as will be described in detail later.

[0149] Referring back to FIG. 14, all variables i, j, and a are initialized to “0” in step S506. Note that i is a variable for counting the vertical address, j is a variable for counting the horizontal address, and a is a flag indicating whether or not the quantization threshold value TH for multiplexing is set.

[0150] In step S507, the process branches depending on the value of flag a. That is, if flag a=“0”, since the quantization threshold value TH for multiplexing is not set yet, the flow advances to step S508. It is checked in step S508 if the value of the pixel of interest is included in the density range which is determined in step S502 and in which information is to be multiplexed. If the pixel of interest is included in that density range, the flow advances to step S509 to check if the pixel value sequence of a plurality of already binarized pixels within the window shown in FIG. 15 matches the target pattern set in step S504 or S504.

[0151] If the pixel value sequence matches the target pattern (pattern A or B), the flow advances to step S510 to set a value D in the quantization threshold value TH, and output it to the quantizer 203. Note that the value D is set at a value that forces the quantizer 203 to output the quantization output “1”. In this manner, if the pixel value sequence of pattern A is detected in the block, a horizontally continuous quantization pattern is formed, and it indicates the multiplexed additional information “0”. On the other hand, if the pixel value sequence of pattern B is detected, a vertically continuous quantization pattern is formed, and it indicates the multiplexed additional information “1”.

[0152] On the other hand, if the pixel value sequence does not match the target pattern, a value C is set in the quantization threshold value TH and is output to the quantizer 203 in step S511. Also, if NO is determined in steps S507 and S508, the value C is set in the quantization threshold value TH in step S511. As the value C, it is a common practice to set a value that can obtain quantization values “0” and “1” on the average so as to attain normal quantization. For example, if the pixel value before quantization is expressed by 8 bits, C is “128”. Of course, the value C is not limited to such specific value.

[0153] Only when the quantization threshold value TH is set at D in step S510, flag a is set at “1” in step S512 to indicate the end of threshold value setups for multiplexing in the block of interest.

[0154] Subsequently, the value of variable j is counted up in step S513 to shift the horizontal address by one column. It is checked in step S514 if variable j is smaller than w as the number of horizontal pixels of the block. If NO in step S514, since the processes have been done for w horizontal pixels, variable i for the vertical direction is counted up in step S515, and it is checked in step S516 if variable i is smaller than h as the number of vertical pixels. That is, if j<w or i<h, since pixels to be processed still remain, the flow returns to step S507 to repeat a series of processes.

[0155] As described above, the multiplexer 204 controls the quantization threshold value TH to be output to the quantizer 203 by a series of processes shown in the flow chart of FIG. 14. With this control, a 1-bit signal of additional information indicating “1” or “0” can be multiplexed in a block having a w×h pixel size of image information.

[0156] In the flow chart of FIG. 14, the quantization threshold value TH is output when it is set at either C or D for the sake of simplicity, but if cases of TH=D that embeds additional information are much fewer than those of TH=C that does not embed any additional information, it is effective to set C as a default quantization threshold value TH in the quantizer 203. That is, the multiplexer 204 generates a switching signal of the quantization threshold value TH to the quantizer 203 only for a pixel corresponding to TH=D, and the quantizer 203 quantizes using the value D as the quantization threshold value TH only when it receives the switching signal, and quantizes using the value C as the quantization threshold value TH for other pixels.

[0157] In the control of the quantization threshold value TH shown in FIG. 14, the pixel value sequence within the window does not match the target pattern, and scanning within the block may end. That is, multiplexing by changing the quantization threshold value TH may not be implemented in that block. In such case, it is preferable to use a method of implementing multiplexing by expressing additional information using a decodable combination of quantization values at the end portion of the block. Also, various methods such as a method that retries multiplexing by re-scanning pixels in the block by changing the density range in which additional information is to be multiplexed to that with the next priority, a method that selects the next block to multiplex the additional information, and the like may be used.

[0158] The method of determining w and h indicating the block size is not limited to equations (1) and (2) above. According to equations (1) and (2), a block is formed in accordance with the aspect ratio of an image. Alternatively, w and h may be set to define a block size which has a large width and small height in consideration of, e.g., scanning in the block in pseudo halftoning, or a square block may be set.

[0159] [Principle of Embedding Information]

[0160] The arrangement for implementing multiplexing in the fifth embodiment has been explained. The gist of the fifth embodiment lies in that a texture which is never generated in a pseudo halftone process is artificially generated by combining quantization values, and 1 bit of additional information is expressed by the presence/absence of that texture.

[0161] In general, error diffusion is known as a quantization method that generates a very unique texture. A serious problem of error diffusion is generation of a chain-like texture that the observer finds visually disturbing, and many proposals for preventing such disturbing texture have been made. Upon analyzing the generation factors of a texture, texture patterns include those that can be generated, and those that cannot be generated. For example, if a diffusion matrix shown in FIG. 17 is used as the error distribution table 404, when a pixel immediately before the pixel of interest indicated by * is quantized to “1”, since a negative quantization error is generated, the neighboring pixel of interest is quantized to “1” less often. Therefore, upon decoding codes appended by the fifth embodiment, if a low-density range (highlight portion) can be detected to have little grayscale change, since a quantization value pattern in which both horizontally neighboring pixels assume “1” cannot be normally generated, that pattern can be recognized as a code if it is detected.

[0162] Note that a texture formed by successively printing dots hardly stands out even when it is printed by an ink-jet printer having a resolution as low as about 360 dpi on a recording sheet, and does not impose any visual disturbance. However, with a high-resolution image scanner successively printed dots can be clearly detected, and embedded additional information can be decoded.

[0163] In this manner, codes can be visually naturally embedded as long as a texture that is formed on a recording sheet can be arbitrarily controlled. This is because the frequency characteristics of error diffusion do not have any peak at a given fixed frequency but serve as a broad-band high-pass filter.

[0164] By contrast, it is difficult to arbitrarily control texture in ordered dithering in which frequency components regularly repeat themselves at short periods. Since ordered dithering has very large electric power at a fixed frequency based on the dither period, if information is embedded in a frequency range other than the peak frequency, the observer visually experiences incongruence, resulting in deterioration of image quality.

[0165] Note that a texture in the low-density range has been exemplified in the above description. Likewise, even in the middle- and high-density ranges other than the low-density range, arbitrary information can be embedded by artificially generating a texture which is never generated in the corresponding density range. That is, the decoder side need only recognize and decode a texture pattern which is never generated in a density range it can discriminate as a code.

[0166] An example of multiplexing additional information onto image information according to the fifth embodiment will be explained below. FIG. 18 shows an example in which three different images are output onto a recording sheet. Assume that these three different images are images A, B, and C, and have an identical image size. A case will be examined below wherein audio information that pertains to an image is to be multiplexed on each of the three different images. Note that the information sizes of audio information to be multiplexed on images A, B, and C are respectively 4 kilobytes (KB), 1 KB, and 9 KB. For the sake of simplicity, an increase in information size due to addition of header information, marker code, error correction code, or the like is ignored.

[0167] In this case, since these images have an identical image size, and the ratio A:B:C of the information sizes of audio information to be multiplexed is 4:1:9, the area ratio of blocks in each of which 1 bit of audio information is multiplexed is ¼:1:{fraction (1/9)}. FIG. 19 shows the area ratio of blocks. A rectangular region in each image indicates one block in which 1-bit information of that image is multiplexed. Naturally, image C with the largest information size to be multiplexed has the smallest block size, and suffers the severest deterioration of image quality as a result of multiplexing information. That is, possibility of deterioration of image quality becomes higher with increasing information size to be multiplexed. For this reason, the size w×h of the multiplexing block must be limited on the basis of the value th which is experimentally obtained in advance as a limit of deterioration of image quality.

[0168] As described above, according to the fifth embodiment, since additional information is expressed by a texture that cannot be normally generated, additional information can be multiplexed onto image information in correspondence with the size of the additional information and image information size while suppressing deterioration of image quality.

[0169] Also, according to the fifth embodiment, since large-size additional information such as sound information including audio data and the like can be easily multiplexed onto image information, it is easy to distribute sound information on a recording sheet or to mix secret information in an image while minimizing deterioration of image quality.

[0170] [Sixth Embodiment]

[0171] The sixth embodiment of the present invention will be described below.

[0172] Since the arrangement of an image processing system according to the sixth embodiment is substantially the same as that shown in FIGS. 10 and 11 in the fifth embodiment, except for the operation in the multiplexing controller 201, a detailed description thereof will be omitted. A characteristic feature of the sixth embodiment lies in that additional information is multiplexed on each of four color components, i.e., yellow (Y), magenta (M), cyan (C), and black (K) as those upon image formation. Therefore, this embodiment is very effective for an apparatus that prints out a color image using the image output unit 1003.

[0173]FIG. 20 is a flow chart showing the sequence of the control process in the multiplexing controller 201 of the sixth embodiment.

[0174] In step S1101, the number HEIGHT of vertical pixels and the number WIDTH of horizontal pixels of image information, and an information size (the number of bits) N of additional information such as audio information or the like are input. In step S1102, an information size α required for multiplexing in addition to the additional information is added to N to obtain N2.

[0175] In step S1103, when lattice points are set at intervals th in image information, the number of squares bounded by these lattice point is computed by:

m=INT(WIDTH/th)×INT(HEIGHT/th)  (3)

[0176] where INT indicates an integer value, with the decimal part being dropped.

[0177] m indicates the number of square blocks which have th as one side and can be arranged within an image size WIDTH×HEIGHT. Note that th may be determined by experimentally computing a limit beyond which image quality deteriorates considerably upon multiplexing additional information, or a value that makes multiplexing impossible in practice may be set. That is, m is the maximum number of blocks as a multiplexing limit, and indicates that m-bit information can be multiplexed when 1 bit is multiplexed per block.

[0178] In step S1104, the information size N2 is compared with m. If N2≦m, since multiplexing using one color component is possible, the following setup pertaining to a yellow (Y) component is made in step S1105:

w_(y)=h_(y)=th  (4)

[0179] where w_(y) and h_(Y) are respectively the numbers of horizontal and vertical pixels of a block upon multiplexing additional information onto the Y component.

[0180] On the other hand, if N2>m in step S1104, the flow advances to step S1106 to compare N2 with 2×M in turn. If N2≦2×M, since multiplexing is possible if two color components are used, the flow advances to step S1107 to make the following setup pertaining to a magenta (M) component in addition to the setup pertaining to the Y component given by equation (4):

w _(M) =h _(M)={square root}{square root over ({WIDTH×HEIGHT/(N2−m)})}  (5)

[0181] where w_(M) and h_(M) are respectively the numbers of horizontal and vertical pixels of a block upon multiplexing additional information onto the M component.

[0182] The process in step S1107 indicates that the remaining information size that cannot be multiplexed after a maximum number of multiplexing blocks are formed in the Y component is multiplexed on the M component. At this time, since the block size (w_(M), h_(M)) of the M component is larger than the block size (w_(Y), h_(Y)) used upon multiplexing information on the Y component, deterioration of image quality in the M component can be less than that in the Y component.

[0183] On the other hand, if N2>2×M in step S1106, the flow advances to step S1108 to compare N2 with 3×M in turn. If N2≦3×M, since multiplexing is possible if three color components are used, the flow advances to step S1109 to make the following setups pertaining to the M component and a C (cyan) component in addition to the setup pertaining to the Y component given by equation (4):

w_(M=h) _(M)=th  (6)

w _(C) =h _(C)={square root}{square root over ({WIDTH×HEIGHT/(N2−2×m)})}  (7)

[0184] where w_(C) and h_(C) are respectively the numbers of horizontal and vertical pixels of a block upon multiplexing additional information onto the C component. Also, th is substituted in w_(M) and h_(M) as in w_(Y) and h_(Y).

[0185] The process in step S1109 indicates that multiplexing is done for both the Y and M color components up to a limit by forming minimum blocks, and the remaining information is multiplexed on the C component.

[0186] On the other hand, if N2>3×M in step S1108, an error-message is displayed in step S1110, thus ending the processing.

[0187] As described above, the sixth embodiment is characterized in that priority is assigned to color components that form an image, and multiplexing is done up to a limit of deterioration of image quality. In general, when a color image is formed using four, i.e., Y, M, C, and K components, the Y component has the lowest visual sensitivity. Although the multiplexing method in the sixth embodiment suffers little visual deterioration of image quality since it mixes information in a texture generated by error diffusion as in the fifth embodiment, it is rather preferable to multiplex information on a color agent with low sensitivity. For this reason, the sixth embodiment executes multiplexing on the Y component as the top priority, and then in the order of M and C. Of course, when the size of additional information is smaller than the image size, multiplexing can be implemented using fewer color components, but the number of color components used in multiplexing increases with increasing information size.

[0188] In the flow chart shown in FIG. 20, a multiplexing process for a K (black) component is omitted. Of course, additional information may be multiplexed on the K component. The priority order of color components is not limited to that described above. For example, higher priority can be assigned to a color agent with lower visual sensitivity such as low-density ink obtained by lowering the dye density used in, e.g., an ink-jet printer.

[0189] The sixth embodiment has exemplified a multiplexing block having the same number of vertical and horizontal pixels, but the shape of the multiplexing block is not limited to square.

[0190] As described above, according to the sixth embodiment, additional information is multiplexed on an image consisting of a plurality of color components up to a limit of deterioration of image quality in units of color component images in the predetermined priority order. Therefore, additional information having a larger size can be multiplexed on an image while minimizing deterioration of image quality.

[0191] In the fifth and sixth embodiments described above, audio information is multiplexed. However, information to be multiplexed is not limited to such specific information.

[0192] A characteristic feature of the fifth and sixth embodiments lies in that multiplexing is controlled in accordance with the size of additional information, and is not limited to the aforementioned control method. Also, as a method of multiplexing additional information by changing the texture pattern using a combination of quantization values, various methods may be used in addition to the method of changing the quantization threshold value.

[0193] Since the aforementioned multiplexing method uses a texture produced by pseudo halftoning, a plurality of pixels must be referred to even upon multiplexing 1 bit, and a change in quantization threshold value of error diffusion influences binarization results of a plurality of pixels after the pixel of interest. For this reason, as the minimum number of pixels per block, an optimal value is preferably computed by experiments so as to prevent the texture pattern from visually standing out.

[0194] In the fifth and sixth embodiments, the multiplexing conditions are controlled in accordance with additional information and image information. The multiplexing conditions are multiplexed as header information onto image information upon transmission. The reception system demultiplexes additional, information and image information on the basis of the multiplexing conditions described in the header information.

[0195] In the sixth embodiment, when the size of additional information becomes larger than a prescribed value, an error message is displayed. Alternatively, it is very effective to make hybrid control that executes another multiplexing method when the size of additional information becomes larger than the prescribed value.

[0196] As many apparently widely different embodiments of the present invention can be made without departing from the spirit and scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims. 

What is claimed is:
 1. An image processing apparatus, which has embedding means for embedding information in image information, comprising: obtaining means for obtaining distribution information of pixel values by scanning the image information before the information is embedded by the embedding means; and detection means for detecting an information size, that can be embedded by the embedding means, on the basis of the obtained distribution information of pixel values.
 2. The apparatus according to claim 1, further comprising display means for displaying the information size detected by said detection means.
 3. The apparatus according to claim 1, further comprising: comparison means for comparing the information size detected by said detection means with an information size of information to be embedded; and determination means for determining on the basis of a comparison result whether embedding is possible.
 4. The apparatus according to claim 3, further comprising display means for displaying the determination result of said determination means.
 5. The apparatus according to claim 3, further comprising control means for controlling the embedding means on the basis of the determination result of said determination means.
 6. An image processing apparatus, which has embedding means for embedding coded information in image information, comprising: obtaining means for obtaining distribution information of pixel values by scanning the image information before the information is embedded by the embedding means; detection means for detecting an information size, that can be embedded by the embedding means, on the basis of the obtained distribution information of pixel values; and control means for controlling an encoding condition of the coded information on the basis of the detected information size that can be embedded.
 7. An image processing method for embedding information in image information, comprising the steps of: obtaining distribution information of pixel values by scanning the image information before the information is embedded; and detecting an information size, that can be embedded in the image information, on the basis of the obtained distribution information of pixel values.
 8. The method according to claim 7, further comprising the step of displaying the information size detected in said detecting step.
 9. The method according to claim 7, further comprising the steps of: comparing the information size detected in said detecting step with an information size of information to be embedded; and determining on the basis of a comparison result whether embedding is possible.
 10. The method according to claim 9, further comprising the step of displaying the determination result.
 11. The method according to claim 9, further comprising the step of controlling embedding of the information on the basis of the determination result.
 12. An image processing method for embedding coded information in image information, comprising the steps of: obtaining distribution information of pixel values by scanning the image information before the information is embedded by the embedding means; detecting an information size, that can be embedded in the image information, on the basis of the obtained distribution information of pixel values; and controlling an encoding condition of the coded information on the basis of the detected information size that can be embedded.
 13. A computer program product comprising a computer readable medium having computer program code, for embedding information in image information, said product comprising: an obtaining process procedure code for obtaining distribution information of pixel values by scanning the image information before the information is embedded; and a detecting process procedure code for detecting an information size, that can be embedded in the image information, on the basis of the obtained distribution information of pixel values.
 14. A computer program product comprising a computer readable medium having computer program code, for embedding coded information in image information, said product comprising: an obtaining process procedure code for obtaining distribution information of pixel values by scanning the image information before the information is embedded; a detecting process procedure code for detecting an information size, that can be embedded in the image information, on the basis of the obtained distribution information of pixel values; and a controlling process procedure code for controlling an encoding condition of the coded information on the basis of the detected information size that can be embedded.
 15. An image processing apparatus for embedding additional information in image information, comprising: quantization means for quantizing the image information by a pseudo halftone process; embedding means for embedding a quantization value pattern indicating the additional information in the quantized image information by controlling a quantization condition of said quantization means; and control means for controlling embedding of the quantization value pattern in accordance with an information size of the additional information.
 16. The apparatus according to claim 15, wherein the quantization value pattern is a pattern which cannot normally be generated by the pseudo halftone process.
 17. The apparatus according to claim 15, wherein said control means controls an embedding interval of the quantization value pattern in the quantized image information.
 18. The apparatus according to claim 17, wherein said control means decreases the interval with increasing information size of the additional information.
 19. The apparatus according to claim 15, wherein said control means controls a unit of the quantized information in which the quantization value pattern is embedded.
 20. The apparatus according to claim 19, wherein said control means decreases the unit with increasing information size of the additional information.
 21. The apparatus according to claim 15, wherein the image information has a plurality of color components, and said control means controls a color component in which the quantization value pattern is embedded.
 22. The apparatus according to claim 21, wherein said control means increases the number of color components in which the quantization value pattern is embedded with increasing information size of the additional information.
 23. The apparatus according to claim 21, wherein said control means controls to embed the quantization value pattern in turn from a color component having lowest visual sensitivity.
 24. The apparatus according to claim 21, wherein said control means sets a smaller unit of the quantized image information in which the quantization value pattern is embedded as a color component has lower visual sensitivity.
 25. The apparatus according to claim 15, wherein said embedding means controls the quantization condition on the basis of quantized pixel values around a pixel of interest, and the additional information to be embedded.
 26. The apparatus according to claim 25, wherein the quantization condition is a quantization threshold value.
 27. The apparatus according to claim 15, wherein the pseudo halftone process is error diffusion.
 28. An image processing method for embedding additional information in image information, comprising the steps of: embedding, by controlling a quantization condition of a quantization process for quantizing the image information by a pseudo halftone process, a quantization value pattern indicating the additional information in the quantized image information; and controlling embedding of the quantization value pattern in accordance with an information size of the additional information.
 29. The method according to claim 28, wherein the quantization value pattern is a pattern which cannot normally be generated by the pseudo halftone process.
 30. The method according to claim 28, wherein the control step includes the step of controlling an embedding interval of the quantization value pattern in the quantized image information.
 31. The method according to. Claim 30, wherein the control step includes the step of decreasing the interval with increasing information size of the additional information.
 32. The method according to claim 28, wherein the control step includes the step of controlling a unit of the quantized information in which the quantization value pattern is embedded.
 33. The method according to claim 32, wherein the control step includes the step of decreasing the unit with increasing information size of the additional information.
 34. The method according to claim 28, wherein the image information has a plurality of color components, and the control step includes the step of controlling a color component in which the quantization value pattern is embedded.
 35. The method according to claim 34, wherein the control step includes the step of increasing the number of color components in which the quantization value pattern is embedded with increasing information size of the additional information.
 36. The method according to claim 34, wherein the control step includes the step of controlling to embed the quantization value pattern in turn from a color component having lowest visual sensitivity.
 37. The method according to claim 34, wherein the control step includes the step of setting a smaller unit of the quantized image information in which the quantization value pattern is embedded as a color component has lower visual sensitivity.
 38. The method according to claim 28, wherein the embedding step includes the step of controlling the quantization condition on the basis of quantized pixel values around a pixel of interest, and the additional information to be embedded.
 39. The method according to claim 38, wherein the quantization condition is a quantization threshold value.
 40. The method according to claim 28, wherein the pseudo halftone process is error diffusion.
 41. A computer program product comprising a computer readable medium having computer program code, for embedding additional information in image information, said product comprising: an embedding process procedure code for embedding, by controlling a quantization condition of a quantization process for quantizing the image information by a pseudo halftone process, a quantization value pattern indicating the additional information in the quantized image information; and a controlling process procedure code for controlling embedding of the quantization value pattern in accordance with an information size of the additional information.
 42. An image processing apparatus for embedding additional information in image information, comprising: quantization means for quantizing the image information by error diffusion; setting means for setting a size of a pixel block in which a predetermined unit of additional information is embedded; and embedding means for controlling a quantization threshold value of said quantization means on the basis of the predetermined unit of additional information in units of pixel blocks.
 43. The apparatus according to claim 42, wherein said setting means sets a size of the pixel block on the basis of at least an information size of the image information, a size of the additional information, and an information size required for extracting the embedded additional information.
 44. The apparatus according to claim 43, wherein said setting means decreases the size of the pixel block with increasing information size of the additional information.
 45. The apparatus according to claim 43, wherein the image information has a plurality of color components, and said setting means sets a size of the pixel block in units of color components.
 46. The apparatus according to claim 45, wherein said setting means increases the number of color components in which the predetermined unit of additional information is embedded with increasing information size of the additional information.
 47. The apparatus according to claim 45, wherein said setting means sets the size of the pixel block to embed the predetermined unit of additional information in turn from a color component with lowest visual sensitivity.
 48. The apparatus according to claim 45, wherein said setting means sets a smaller size of the pixel block as a color component has lower visual sensitivity.
 49. The apparatus according to claim 42, wherein said embedding means comprises: region determination means for determining an embedding region, in which the predetermined unit of additional information to be embedded is embedded, on the basis of a distribution of pixel values included in the pixel block; pattern determination means for determining a quantization value pattern in accordance with the embedding region and the predetermined unit of additional information to be embedded; and output means for outputting a quantization threshold value used to embed the additional information when a pixel of interest is included in the embedding region, and a sequence of quantized pixel values around the pixel of interest matches the quantization value pattern.
 50. The apparatus according to claim 49, wherein said region determination means determines the embedding region in the order of a low-density region, high-density region, and middle-density region.
 51. An image processing method for embedding additional information in image information, comprising the steps of: setting a size of a pixel block in which a predetermined unit of additional information is embedded; and controlling in units of pixel blocks a quantization threshold value used to quantize the image information by error diffusion on the basis of the predetermined unit of additional information to be embedded.
 52. The method according to claim 51, wherein the setting step includes the step of setting a size of the pixel block on the basis of at least an information size of the image information, a size of the additional information, and an information size required to extract the embedded additional information.
 53. The method according to claim 52, wherein the setting step includes the step of decreasing the size of the pixel block with increasing information size of the additional information.
 54. The method according to claim 52, wherein the image information has a plurality of color components, and the setting step includes the step of setting a size of the pixel block in units of color components.
 55. The method according to claim 54, wherein the setting step includes the step of increasing the number of color components in which the predetermined unit of additional information is embedded with increasing information size of the additional information.
 56. The method according to claim 54, wherein the setting step includes the step of setting the size of the pixel block to embed the predetermined unit of additional information in turn from a color component with lowest visual sensitivity.
 57. The method according to claim 54, wherein the setting step includes the step of setting a smaller size of the pixel block as a color component has lower visual sensitivity.
 58. The method according to claim 51, wherein the control step comprises the steps of: determining an embedding region, in which the predetermined unit of additional information to be embedded is embedded, on the basis of a distribution of pixel values included in the pixel block; determining a quantization value pattern in accordance with the embedding region and the predetermined unit of additional information to be embedded; and outputting a quantization threshold value used to embed the additional information when a pixel of interest is included in the embedding region, and a sequence of quantized pixel values around the pixel of interest matches the quantization value pattern.
 59. The method according to claim 58, wherein the region determination step includes the step of determining the embedding region in the order of a low-density region, high-density region, and middle-density region.
 60. A computer program product comprising a computer readable medium having computer program code, for embedding additional information in image information, said product comprising: a setting process procedure code for setting a size of a pixel block in which a predetermined unit of additional information is embedded; and a controlling process procedure code for controlling in units of pixel blocks a quantization threshold value used to quantize the image information by error diffusion on the basis of the predetermined unit of additional information to be embedded. 